package com.robot.service;

import com.robot.dao.dto.IDDTO;
import com.robot.dao.dto.SendMessageDTO;
import com.robot.dao.vo.ChatVO;
import org.springframework.web.multipart.MultipartFile;
import reactor.core.publisher.Flux;

public interface ChatService  {

    /**
     * 根据机器人ID和用户ID查询聊天
     * @param iddto
     * @return
     */
    ChatVO query(IDDTO iddto);

    /**
     * 将新对话内容写入数据库并转发给算法端
     * @param sendMessageDTO
     */
    Flux<String> sendChat(SendMessageDTO sendMessageDTO, MultipartFile file) throws Exception;

    String sendImageChat(MultipartFile file) throws Exception;
}
